package org.crumbleworks.crumbcrane.crate;

import org.crumbleworks.crumbcrane.entity.Entity2D;
import org.newdawn.slick.opengl.Texture;

public abstract class Crate extends Entity2D {
    public static final int WOOD_CRATE = 1;
    public static final int MG_CRATE = 2;
    public static final int RPG_CRATE = 3;
    public static final int TNT_CRATE = 4; 
    
    protected int hitPoints, damageResistance;

    public Crate(float x, float y, float width, float height, float r, float g, float b, Texture texture, int hitPoints, int damageResistance) {
        super(x, y, width, height, r, g, b, texture);

        this.hitPoints = hitPoints;
        this.damageResistance = damageResistance;
    }

    public int getHitPoints() {
        return hitPoints;
    }

    public void setHitPoints(int hitPoints) {
        this.hitPoints = hitPoints;
    }

    public int getDamageResistance() {
        return damageResistance;
    }

    public void setDamageResistance(int damageResistance) {
        this.damageResistance = damageResistance;
    }
}
